﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="BookingSearch.aspx.cs" Inherits="SwenAssigment.BookingSearch" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
        .auto-style2 {
            text-align: right;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="auto-style1">
        <tr>
            <td style="white-space:nowrap"><a href="RoomAvalibility.aspx">To Room Avalibility</a></td>
            <td>&nbsp;</td>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td class="auto-style2" style="white-space:nowrap">Search Room ID:</td>
            <td>
                <asp:DropDownList ID="DropDownList2" runat="server">
                    <asp:ListItem>All</asp:ListItem>
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td style="white-space:nowrap">
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem Selected="True">In hotel</asp:ListItem>
                    <asp:ListItem>Checkedout</asp:ListItem>
                </asp:DropDownList>
&nbsp;<asp:Button ID="Button1" runat="server" Text="Search" OnClick="Button1_Click" />
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
                    <Columns>
                        <asp:BoundField DataField="bookid" HeaderText="Booking ID" />
                        <asp:BoundField DataField="numadult" HeaderText="Adults" />
                        <asp:BoundField DataField="numchild" HeaderText="Children" />
                        <asp:BoundField DataField="checkindt" HeaderText="CheckIn" />
                        <asp:BoundField DataField="proomtype" HeaderText="Prefered Room" />
                        <asp:BoundField DataField="roomassign" HeaderText="Room Assigned" />
                        <asp:HyperLinkField DataNavigateUrlFields="bookid" DataNavigateUrlFormatString="BookingDetail.aspx?bookid={0}" HeaderText="Detail" NavigateUrl="~/BookingDetail.aspx" Text="Details" />
                    </Columns>
                    <EmptyDataTemplate>
                        No results returned
                    </EmptyDataTemplate>
                </asp:GridView>
                </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
    </table>
</asp:Content>
